<template>
  <div class="address">
      <div class="address_items">
          <div class="address_item" v-for="(item, index) in address" :key="index">
              <div class="address_item_checkbox">
                  <input type="checkbox" />
              </div>
              <div class="address_item_content">
                  <div class="address_content_text">
                      <p class="address_content_user">
                          <span class="address_user_name">{{item.linkMan}}</span>
                          <span class="address_user_mobile">{{item.mobile}}</span>
                      </p>
                      <p class="address_content_addres">--{{item.address}}</p>
                  </div>
                  <div class="address_content_icon">
                      <img src="../../assets/mineItem/forward1.png" alt="">
                  </div>
              </div>
          </div>
      </div>
  </div>
</template>

<script>
export default {
    data() {
        return {
            address: []
        }
    },
    mounted() {
        this.$API.getAddress({
            params: {
                token: localStorage.token
            }
        }).then(res=> {
            // console.log(res.data.data)
            this.address  = res.data.data;
        })
    }
}
</script>

<style>
.address {
    margin-top: 1.2rem;
}
.address_item {
    width: 95%;
    display: flex;
}
.address_item_checkbox {
    flex: 2;
    margin-top: 0.5rem;
}
.address_item_content {
    flex: 18;
    font-size: 0.3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.address_user_name {
    margin-right: 0.2rem;
    color: #333;
}
.address_content_addres {
    font-size: 0.2rem;
    color: #666;
}
</style>